package com.zc.controller.newController;

import com.zc.entity.Odds;
import com.zc.service.OddService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@CrossOrigin
@RestController
@RequestMapping("/test")
public class TestController {
    @Resource
    private OddService oddsService;
    @RequestMapping(value = "/findAll",method = RequestMethod.POST)
    public List<Odds> findAll(){
        return oddsService.findAll();
    }
}
